#ifndef INC_POINTTRANSLATOR_H
#define INC_POINTTRANSLATOR_H

#include <QPoint>
#include <QSize>

class PointTranslator
{
	public:
		PointTranslator(int zoom = 1);

		int zoom() const;
		void setZoom(int);

		QPoint toscreen(const QPoint&) const;
		QSize toscreen(const QSize&) const;

		QPoint tological(const QPoint&) const;
		QSize tological(const QSize& s) const;

	private:
		int _zoom;
};

#endif // INC_POINTTRANSLATOR_H

